package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.GoodsBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetGoodsInfoIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetGoodsInfoModel extends RetrofitBaseModel implements GetGoodsInfoIface<GoodsBean> {


    private AllService allService;
    private Retrofit retrofit;
    public GetGoodsInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void getGoodsInfo(String goodid, TListener<GoodsBean> tListener) {
        Call<GoodsBean> call = allService.getGoodsInfo(goodid);
        callenqueue(call,tListener);
    }
}
